package com.muyu.user.domain.resp;

import com.muyu.user.domain.model.SysUserTagPageQueryModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户标签分页接口返回结果集
 *
 * @author liuguoqiang
 * @date 2025-09-14
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户标签分页接口返回结果集")
public class SysUserTagPageResp {

    /**
     * 标签ID
     */
    @Schema(name = "tagId", title = "标签ID", description = "标签ID" )
    private Long tagId;

    /**
     * 标签名称
     */
    @Schema(name = "tagName", title = "标签名称", description = "标签名称" , required = true)
    private String tagName;

    /**
     * 信息构造器
     */
    public static SysUserTagPageResp infoBuild(SysUserTagPageQueryModel pageQueryModel){
        return SysUserTagPageResp.builder()
            .tagId(pageQueryModel.getTagId())
            .tagName(pageQueryModel.getTagName())
            .build();
    }

}
